//
//  WPTestViewController.swift
//  WB
//
//  Created by 汪鹏 on 2016/12/19.
//  Copyright © 2016年 汪鹏. All rights reserved.
//  测试用的

import UIKit

class WPTest2ViewController: UIViewController {
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        //navItem.leftBarButtonItem = UIBarButtonItem(title: "返回", target: self, action: #selector(back))
        //supportedInterfaceOrientations = .landscapeLeft
        
        //navItem.rightBarButtonItem = UIBarButtonItem(title: "关闭", target: self, action: #selector(goNext))
    }
    
    @objc private func goNext(){
        
        dismiss(animated: true, completion: nil)
    }
    
    @objc private func back(){
        _ = navigationController?.popViewController(animated: true)
    }
    
}
